names=['小明','黎叁','小红','小亮','黎叁','小张','小红','黎叁','小张']
renames=[]
no_renames=[]
names.count('小明')
names.count('黎叁')
names.count('小红')
names.count('小亮')
names.count('小张')
for a in names:
    if names.count(a)>=2:
        renames.append(a)
    else:
        no_renames.append(a)
print(no_renames)
print(renames)
print('renames_time %s '%len(renames))
print('黎叁_rename_times %s'%renames.count('黎叁'))
print('小红_rename_times %s'%renames.count('小红'))
print('小张_rename_times %s'%renames.count('小张'))
